﻿@model IEnumerable<BB.Apostas.Models.UserProfile>
<h2>
    Lista Utilizadores</h2>
<p>
    @Html.ActionLink("Voltar", "Index")
</p>
<p>
    @Html.ActionLink("Novo Utilizador", "CreateUtilizador")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.UserName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.UserName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                @Html.ActionLink("Editar", "EditUtilizador", new { id = item.UserId }) |
                @Html.ActionLink("Remover", "DeleteUtilizador", new { id = item.UserId })
            </td>
        </tr>
    }
</table>
